package com.yiren.dbaa.currency.model;

/**
 * Created by WANGRONGXIANG
 * on 2022/2/22
 * Describe 屏幕属性实体类
 */
public class ScreenModel {

    private int width;     //屏幕宽度（像素）
    private int height;    //屏幕高度（像素）
    private float density; //屏幕密度（0.75 / 1.0 / 1.5）
    private int densityDpi;//屏幕密度DPI（120(低密度ldpi) / 160(中密度mdpi) / 240(高密度hdpi) /320(超高密度xhdpi)）

    @Override
    public boolean equals(Object obj) {
        ScreenModel screen = (ScreenModel) obj;
        return this.width == screen.width && this.height == screen.height
                && this.density == screen.density
                && this.densityDpi == screen.densityDpi;

    }

    public ScreenModel() {
        super();
    }

    public ScreenModel(int width, int height, float density, int densityDpi) {
        super();
        this.width = width;
        this.height = height;
        this.density = density;
        this.densityDpi = densityDpi;
    }

    public int getWidth() {
        return width;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    public float getDensity() {
        return density;
    }

    public void setDensity(float density) {
        this.density = density;
    }

    public int getDensityDpi() {
        return densityDpi;
    }

    public void setDensityDpi(int densityDpi) {
        this.densityDpi = densityDpi;
    }
}
